class Solution
{
public:
    vector<string> divideString(string s, int k, char fill)
    {
        int remainSize = s.size() % k;
        if (remainSize != 0)
        {
            s.append(k - remainSize, fill);
        }
        vector<string> result;
        for (int i = 0; i < s.size(); i += k)
        {
            result.push_back(s.substr(i, k));
        }
        return result;
    }
};